package com.wza.interview.exception;

/**
 * <一句话功能简述>
 * <p>
 * <功能详细描述>
 *
 * @author weizhian
 * @version [版本号, 2018/11/18]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */

class Annoyance extends Exception {}
class Sneeze extends Annoyance {}

class Human {

    public static void main(String[] args)
            throws Exception {
        try {
            try {
                throw new Sneeze();
            }
            catch ( Annoyance a ) {
                System.out.println("Caught Annoyance");
                throw a;
            }
        }
        catch ( Sneeze s ) {
            System.out.println("Caught Sneeze");
            return ;
        }
        finally {
            System.out.println("Hello World!");
        }
    }
}
